/////////////////////////////////////////////////////////////////////////////
// Name:        mainframe.h
// Purpose:     
// Author:      Brant Young
// Modified by: 
// Created:     Mon May 14 21:45:58 2007
// RCS-ID:      
// Copyright:   Copyright (c) daodict.com 2007
// Licence:     GPL 2.0
/////////////////////////////////////////////////////////////////////////////

#pragma once

#include <wx/timer.h>

class SplashScreenWindow;
class MainFrame;

/**
 * SplashFrame class declaration
 */
class SplashFrame: public wxFrame {
public:
    /// Constructors
	SplashFrame();
    
    /// Destructor
    virtual ~SplashFrame();

    SplashScreenWindow* p_bmp_wnd;
    wxBoxSizer* p_main_sizer;
    wxGauge* p_loading_gauge;
    wxStaticText* p_loading_stc;
    
    MainFrame* p_main_frame;

    void OnUpdateTimer(wxTimerEvent& event);
    void OnLoadingTimer(wxTimerEvent& event);
    
////@begin SplashFrame member variables
    /// Control identifiers
    enum {
        ID_SPLASH_FRAME = 10000,
        ID_SPLASH_SCREEN,
        ID_LOADING_GAUGE,
        ID_UPDATE_TIMER,
        ID_LOADING_TIMER
    };
////@end SplashFrame member variables

protected:
	wxTimer _update_timer;
	wxTimer _loading_timer;
	
	void _update();
	void _inc_progress(const wxString& msg, int inc);
	void _find_new_or_del_dicts();
    void InitEvents();
};

